@import url("https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Science+Gothic:wght@100..900&display=swap");

/*--- CSS Reset for full page ---*/
html,
body {
  height: 100%;
  margin: 0;
  overflow-x: hidden /*Prevent Overflowing from stars*/;
  color: white;
  font-family: "Science Gothic", monospace;
}

body {
  background-image: linear-gradient(
    to bottom,
    rgba(55, 0, 85, 1) 0%,
    rgba(118, 0, 224, 1) 100%
  );
  background-size: auto, cover;
  background-attachment: fixed;
  background-color: #370055;
  min-height: 100vh;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

/*--- Font Definitions ---*/
.science-gothic-font {
  font-family: "Science Gothic", monospace;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
  font-variation-settings: "slnt" 0, "wdth" 100, "CTRS" 0;
}

/* Font Definitions */
.font-pixel {
  font-family: "Press Start 2P", cursive;
}

/*--- Star Background Animation ---*/
.star-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1; /* Place behind content */
  pointer-events: none; /* Do not block mouse clicks */
}

.star {
  position: absolute;
  background-color: white;
  border-radius: 50%;
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
  /* Use the same simple twinkle keyframes */
  animation: sparkle linear infinite alternate;
}

@keyframes sparkle {
  0% {
    opacity: 0.1;
  }
  50% {
    opacity: 0.8;
  }
  100% {
    opacity: 0.1;
  }
}

/*--- Flexbox Container ---*/
.scrim-container {
  width: 100%;
  max-width: 800px; /* Equivalent to max-w-4xl */
  background-color: rgba(0, 0, 0, 0.7); /* Black with 70% opacity */
  backdrop-filter: blur(4px); /* A light blur effect */
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 0 40px rgba(118, 0, 224, 0.5); /* Outer glow */
  margin-top: 30px;
  margin-bottom: 30px;
}

/*--- Text and Headers ---*/
.header-content {
  text-align: center;
  margin-bottom: 30px;
}

.header-content h1 {
  font-size: 3rem;
  color: #fcd34d;
  padding-top: 0;
  padding-bottom: 0;
  margin-top: 0;
  margin-bottom: 0;
}
header h1 {
  color: white;
  font-size: 3rem;
  text-align: center;
  font-family: "Press Start 2P";
}

/*--- Neon Glow Effect ---*/
.neon-glow {
  text-shadow: 0 0 5px #00ffff, 0 0 10px #ff00ff; /* Cyan and Magenta glow */
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}
.neon-glow:hover {
  text-shadow: 0 0 10px #00ffff, 0 0 20px #ff00ff;
  color: #fff;
}

.marquee {
  background-color: #db2777; /* pink-600 */
  color: white;
  font-weight: bold;
  padding: 5px;
  border: 2px solid #fcd34d; /* yellow-300 */
  margin-bottom: 20px;
}

.navigation {
  display: flex;
  justify-content: center;
  gap: 24px;
  font-size: 20px;
}

.navigation a {
  text-decoration: none;
}

/*--- Navigation Colors ---*/
.nav-home {
  color: #22d3ee;
}
.nav-art {
  color: #f472b6;
}
.nav-code {
  color: #a3e635;
}
.nav-about {
  color: #fbbf24;
}

/*--- Main Content ---*/
.main-content {
  margin-top: 40px;
  margin-bottom: 40px;
}

.captain-log {
  border: 2px dashed #22d3ee;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 40px;
}

.captain-log h2 {
  font-size: 18px;
  color: #22d3ee;
  margin-bottom: 8px;
}

.latest-updates h2 {
  font-size: 24px;
  color: #fcd34d;
  margin-bottom: 24px;
  text-align: center;
}

.update-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}

.update-post {
  flex: 1 1 45%;
  min-width: 300px;
  background-color: rgba(76, 29, 149, 0.5); /* purple-900 bg-opacity-50 */
  padding: 16px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.update-post.art {
  border: 2px solid #f472b6;
  margin: 20px;
}

.log-post.art {
  flex: 1 1 45%;
  min-width: 300px;
  background-color: rgba(76, 29, 149, 0.5);
  padding: 16px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  border: 2px solid #f472b6;
  margin: 20px;
}

.update-post.code {
  border: 2px solid #a3e635;
  margin: 20px;
}

.log-post.code {
  flex: 1 1 45%;
  min-width: 300px;
  background-color: rgba(76, 29, 149, 0.5);
  padding: 16px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  border: 2px solid #a3e635;
  margin: 20px;
}

.update-post h3 {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 12px;
}

.log-post h3 {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 12px;
}

.log-post a {
  text-decoration: underline;
  display: block;
  margin-top: 8px;
  text-align: left;
}

.update-post a {
  text-decoration: underline;
  display: block;
  margin-top: 8px;
  text-align: left;
}

.log-post.art a {
  color: #f9a8d4;
}
.log-post.code a {
  color: #d9f99d;
}

.update-post.art a {
  color: #f9a8d4;
}
.update-post.code a {
  color: #d9f99d;
}

.update-post.art img {
  border: dashed;
  display: block;
  color: #f9a8d4;
  max-width: 50%;
}

.update-post.code img {
  border: dashed;
  display: block;
  color: #d9f99d;
  max-width: 50%;
}

.log-post.art img {
  border: dashed;
  display: block;
  color: #f9a8d4;
  max-width: 50%;
  margin-left: auto;
  margin-right: auto;
}

.log-post.code img {
  border: dashed;
  display: block;
  color: #d9f99d;
  max-width: 50%;
  margin-left: auto;
  margin-right: auto;
}

.update-post.code p {
  color: #d9f99d;
}

.log-post.code p {
  text-align: center;
  color: #d9f99d;
}

.update-post.code h1 {
  text-align: center;
  color: #d9f99d;
  font-size: 2rem;
}

.log-post.code h1 {
  text-align: center;
  color: #d9f99d;
  font-size: 2rem;
}

.log-post.art h1 {
  text-align: center;
  color: #f9a8d4;
  font-size: 2rem;
}

.update-post.art h1 {
  text-align: center;
  color: #f9a8d4;
  font-size: 2rem;
}

.log-post.code h2 {
  text-align: center;
  color: #d9f99d;
  font-size: 1rem;
}

.update-post.code h2 {
  text-align: center;
  color: #d9f99d;
  font-size: 1rem;
}

.log-post.art h2 {
  text-align: center;
  color: #f9a8d4;
  font-size: 1rem;
}

.update-post.art h2 {
  text-align: center;
  color: #f9a8d4;
  font-size: 1rem;
}

.log-post.art p {
  text-align: center;
  color: #f9a8d4;
}

.update-post.art p {
  color: #f9a8d4;
}

.about-me {
  flex: 1 1 45%;
  min-width: 300px;
  background-color: rgba(76, 29, 149, 0.5);
  padding: 16px;
  border: solid 2px #fbbf24;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.about-me h1 {
  border: hidden;
  box-shadow: none;
  background: none;
  text-align: center;
  color: #fbbf24;
  font-size: 2rem;
  margin: auto;
}

.about-me h2 {
  margin: auto;
  border: hidden;
  box-shadow: none;
  background: none;
  text-align: center;
  color: #fbbf24;
  font-size: 1rem;
}

.about-me p {
  text-align: center;
  color: #fbbf24;
}

.about-me img {
  display: block;
  max-width: 1rem;
  margin-left: auto;
  margin-right: auto;
  max-width: 1rem;
  border: dashed;
  text-align: center;
  color: #fbbf24;
  font-size: 2rem;
}

/*--- Footer ---*/

.footer-content {
  padding-top: 30px;
  text-align: center;
  border-top: 1px solid #7c3aed; /*purple-700*/
  margin-top: 40px;
  padding-bottom: 10px;
}

.footer-content p {
  font-size: 12px;
  color: #9ca3af; /* gray-400 */
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a {
  font-size: 16px;
  text-decoration: none;
}

.footer-links img {
  width: 64px;
  height: 64px;
  display: inline-block;
}

@media (max-width: 768px) {
  .scrim-container {
    padding: 20px;
  }
  .header-content h1 {
    font-size: 32px;
  }
  .navigation {
    gap: 10px;
    font-size: 16px;
    flex-wrap: wrap;
  }
  .update-grid {
    flex-direction: column;
  }
  .update-post {
    min-width: auto;
    flex: 1 1 100%;
  }
}

/* Web Accessibility */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
